Repository navigation
Refactor <TimePicker> to function component - #24348
Merged
talldan merged 5 commits intoAug 14, 2020
Merged
Conversation
kevin940726
requested review from
ajitbohra,
chrisvanpatten and
youknowriad
as code owners
August 4, 2020 08:12
kevin940726
force-pushed
the
update/time-picker-function-component
branch
from
August 4, 2020 08:38
f0071c5 to
ba0bdbf
Compare
talldan
reviewed
Aug 12, 2020
talldan
left a comment
Contributor
There was a problem hiding this comment.
This seems to be working really nicely, appreciate all the effort into changing the tests over to react testing library, and adding the story.
I spotted one bug with the month select, though as far as I can tell it also seems to happen in master, so it may be worth taking a look at in a separate PR.
A few separate code quality things, but nothing major 😄
talldan
approved these changes
Aug 14, 2020
talldan
left a comment
Contributor
There was a problem hiding this comment.
Thanks for all the work on this!
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Refactor to function component following the latest best practices. Related to #22890. Notable changes are as follow.
<TimePicker>story in storybook.useEffectto reset the state when necessary.How has this been tested?
Several ways to test this:
components/TimePicker.<PostSchedule>component when editing a post and scheduling post time.Types of changes
New feature
Checklist: